$("#submission").click(function() {
    var windowNameIndex = parent.layer.getFrameIndex(window.name);
    var oneMedium2 = $("#oneMedium").val();
    var twoMedium2 = $("#twoMedium").val();
    var thrMedium2 = $("#thrMedium").val();
    var customerId = $("#customerId").val();
    if (oneMedium2 == "请选择" || oneMedium2 == "" || oneMedium2 == null) {
        alert("至少请选择一级媒介！")
    } else {
        $.ajax({
            url: Feng.ctxPath + "/customer/update_mediumValue",
            type: "post",
            data: {
                "oneMedium2": oneMedium2,
                "twoMedium2": twoMedium2,
                "thrMedium2": thrMedium2,
                "customerId": customerId
            },
            success: function(data) {
                Feng.success("修改成功!");
                window.parent.Customer.table.refresh();
                parent.layer.close(windowNameIndex)
            },
            error: function(data) {
                alert('没有权限，请联系系统管理员!');
                parent.layer.close(windowNameIndex)
            }
        })
    }
});